package com.cloud.handlerWritingOpenfeign;

import java.lang.reflect.Proxy;

public class HandWritingProxy {
    public static <T> T create(Class<T> tClass,FindMapping.PackDetails res) {
        System.out.println("动态代理");
        return (T) Proxy.newProxyInstance(tClass.getClassLoader(), new Class[]{tClass}, new FeignInvocationHandler(res,tClass));
    }
}
